﻿<%@ Page Title="" Language="C#" Theme="cvkadmin" MasterPageFile="~/Manager/Manager.Master"
    AutoEventWireup="true" CodeBehind="ManFAQ.aspx.cs" Inherits="MakeupVenus.Manager.ManFAQ" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    <div style="float: left">
        <table cellpadding="3" cellspacing="3">
            <tr>
                <td>
                    Chuyên mục:
                </td>
                <td>
                    <asp:DropDownList ID="ddlcategory" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlcategory_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Tìm kiếm
                </td>
                <td>
                    <asp:TextBox ID="txtSearch" runat="server" Width="395px"></asp:TextBox>&nbsp;<asp:Button
                        ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div style="clear: both; text-align:right">
        &nbsp;</div>
    <div>
        <asp:GridView ID="grv" runat="server" AutoGenerateColumns="False" CssClass="TMain"
            BorderStyle="Solid" BorderWidth="1px" EmptyDataText="<b style='color:red'>Không có dữ liệu</b>"
            CellPadding="4" GridLines="Vertical" OnPageIndexChanging="grv_PageIndexChanging"
            AllowPaging="true" PageSize="30" Width="100%" OnRowDataBound="grv_RowDataBound">
            <RowStyle CssClass="TItem" />
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <asp:Label ID="lblSTT" runat="server" Text='<%# Container.DataItemIndex+1 %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="10px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tiêu đề">
                    <ItemTemplate>
                        <asp:HyperLink ID="hplName" Font-Underline="false" runat="server" Text='<%# Eval("Question") %>'></asp:HyperLink>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Người gửi">
                    <ItemTemplate>
                        <asp:Label ID="lblSender" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ngày gửi">
                    <ItemTemplate>
                        <asp:Label ID="lblCreateDate" runat="server"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle Width="150" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Status">
                    <ItemTemplate>
                        <asp:Label ID="lblAnswer" runat="server"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle Width="100" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thông dụng">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnFre" Font-Underline="false" runat="server" CausesValidation="false"
                            Text="Có" OnClick="btnFre_Click" />
                        <asp:LinkButton ID="btnUnFre" Font-Underline="false" runat="server" CausesValidation="false"
                            Text="Không" OnClick="btnUnFre_Click" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="100" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ẩn/Hiện">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnActive" Font-Underline="false" runat="server" CausesValidation="false"
                            Text="Hiện" OnClick="btnActive_Click" />
                        <asp:LinkButton ID="btnUnActive" Font-Underline="false" runat="server" CausesValidation="false"
                            Text="Ẩn" OnClick="btnUnActive_Click" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="50" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkbtDelete" Font-Underline="false" runat="server" CausesValidation="False"
                            Text="Xóa" OnClick="lnkbtDelete_Click"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="TFooter" />
            <PagerStyle CssClass="TFooter" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <HeaderStyle CssClass="THeader" />
            <AlternatingRowStyle CssClass="TItemA" />
        </asp:GridView>
    </div>
</asp:Content>
